package com.scorpio.framework.service;


import com.scorpio.appuser.domain.AppUserEntity;
import com.scorpio.appuser.dto.LoginUserDetailsDTO;
import com.scorpio.appuser.vo.OauthLoginVo;

public interface LoginServer {

    //微信一键登录
    LoginUserDetailsDTO wxOauthLogin(OauthLoginVo vo);

    //创建token
    LoginUserDetailsDTO createTokenByOpenId(String nickName,String avatarUrl, String openId);

    //登录操作
    LoginUserDetailsDTO loginOperation(AppUserEntity entity, boolean isNewUser);

    //创建新用户
    AppUserEntity createUser(String openId);
}
